package com.distribution.system.openapi.domain.dto;

import com.distribution.common.annotation.valid.IdCard;
import com.distribution.common.annotation.valid.MobilePhone;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author destinyhlp
 * @date 2023/6/2 03:14
 */

@Data
public class ApiChoosePhoneDTO {
    @NotBlank(message = "appId不能为空")
    private String appid;
    @NotBlank(message = "timestamp不能为空")
    private String timestamp;
    @NotBlank(message = "sign不能为空")
    private String sign;
    // 省名称
    @NotBlank(message = "归属地省名称不能为空")
    private String attributionProvince;
    // 市名称
    @NotBlank(message = "归属地市名称不能为空")
    private String attributionCity;
    // 号码第几页
    @NotNull(message = "选号页码不能为空")
    private int page;
    // 商品id
    @NotBlank(message = "商品编码不能为空")
    private String productCode;
    @NotBlank(message = "姓名不能为空")
    private String name;
    @IdCard
    @NotBlank(message = "身份证号不能为空")
    private String card;
    @MobilePhone
    @NotBlank(message = "联系电话不能为空")
    private String customerPhone;
    @NotBlank(message = "收货地省份不能为空")
    private String addressProvince;
    @NotBlank(message = "收货地城市不能为空")
    private String addressCity;
    @NotBlank(message = "收货地县区不能为空")
    private String addressArea;
    @NotBlank(message = "详细地址不能为空")
    private String addressStreet;
    private String keywords;
    /**
     * 短信验证码
     */
    /*@NotBlank(message = "短信验证码不能为空")
    private String smsCode;*/
}
